Skip to content
Discussion options

You must be logged in to vote

You should likely implement some form a transformer for the creation part of your code that translates the exported constant method from your router files to a callable method on HyperExpress. Most route creation methods on the HyperExpress Server and Router components are just the lowercase versions of the original HTTP methods for those requests except for some special cases such as DELETE being del(). So just be sure to go through the documentation and create special translation cases for these and you should be good to go.

For example:

let callable;
switch (route.method) {
    case 'DELETE:
        // Some route creation methods are different from the HTTP methods hence create cases l…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Pitu
Comment options

@kartikk221
Comment options

@Pitu
Comment options

@kartikk221
Comment options

@Pitu
Comment options

Answer selected by kartikk221
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants