regex - Exclude Some File Types In Express JS Routing -
I want to match all / admin / * requests .png, .gif, .js file type, then this path Type:
app.all ('/ admin *', Required login); But I can not exclude file types how can I exclude the .png, .gif, .js request from that routing?
how regex
^.] * \. Anything other than \ / admin [^.] *. matches. followed by .
(? (?: Png | gif | js)) claims that regex is not followed < Code> png | Gif | Js
Comments
Post a Comment