//
pkg.gl
Category
github.com/wwi21seb-projekt/server-beta
internal
router
package
0.0.0-20240728120420-5df9c1d22f7a
Repository:
https://github.com/wwi21seb-projekt/server-beta.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
11
Dependents
1
Files
170 SLOC
#
Functions
RecoveryMiddleware
RecoveryMiddleware recovers from panics and returns a 500 Internal Server Error.
ReturnNotImplemented
ReturnNotImplemented is a helper function to return a 501 Not Implemented error to the client.
SetupRouter
SetupRouter configures the router: CORS, routes, etc.