0.0.23 • Published 3 years ago

soope v0.0.23

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Simple OOP Express SOOPE

Simple OOP Express or SOOPE will help you with building express app with OOP approach. Router is autoimported with directory path builder.

File in directory like this src/routes/api/v1/login.ts will be initialized in Router like this https://domain.tld/api/v1/login. However you can change last segment of this path simple by setting @Path decorator on top of class definition. Every public method of Class will be accesable by default with GET request. Use @Route decorator for specifing methods and/or params

Methods


  • setDir(name: string, path: string)
  • setDirs(dirs: { name: path }[])
  • beforeStart(fn() => ?void)
  • afterStart(fn() => ?void)
  • setErrorHandler(fn(err: Error, req: Request, res: Response, next: NextFunction) => Response)
  • useMiddleware(name: string)
  • start(?params)
0.0.20

3 years ago

0.0.21

3 years ago

0.0.22

3 years ago

0.0.23

3 years ago

0.0.17

3 years ago

0.0.18

3 years ago

0.0.19

3 years ago

0.0.16

3 years ago

0.0.15

3 years ago

0.0.14

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago