Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to exclude the specified directory using SPA #1870

Closed
aadog opened this issue Mar 28, 2022 · 14 comments
Closed

How to exclude the specified directory using SPA #1870

aadog opened this issue Mar 28, 2022 · 14 comments

Comments

@aadog
Copy link

aadog commented Mar 28, 2022

Describe the issue you are facing or ask for help


	app := iris.New().Configure(iris.WithLowercaseRouting)

	// Serve our front-end and its assets.
	app.HandleDir("/", iris.Dir("./app/public"), iris.DirOptions{
		SPA:       true,
		IndexName: "index.html",
	})
	sess := sessions.New(sessions.Config{Cookie: "sessionId"})
	sess.UseDatabase(sessionDB)
	app.Use(sess.Handler())
	app.Use(antd.NewSessionAuth(enforcer).Handler())

	app.PartyFunc("/api", func(api router.Party) {
		mvc.New(api.Party("/shopee")).Handle(&controllers.Shopee{}).HandleError(antd.HandlerError)

		mvc.New(api.Party("/addresss")).Handle(&controllers.Addresss{}).HandleError(antd.HandlerError)
	}).OnAnyErrorCode(func(c *context.Context) {
		fmt.Println("xxx")
	})
	app.Listen(":8080")

/api

/How the API handles its own 404 errors,
Or use spa to exclude the / API directory, at least when 404 occurs, and skip cache

@aadog
Copy link
Author

aadog commented Apr 1, 2022

@kataras It seems that I haven't heard from you for a week. Are you okay, friend

@kataras
Copy link
Owner

kataras commented Apr 2, 2022

Hello @aadog, I have a daily working life that's why I may be slow to answer to some of the questions.

I already answered to you at #1869 (comment), please take time to reply whenever you can.

Can you describe better what you'd expect and post a runnable example that I can copy-paste and re-produce your issue please? Please post the http responses you expected and the target urls too.

Thanks,

@aadog
Copy link
Author

aadog commented Apr 3, 2022

Sorry, I just don't want your health to go wrong, because you haven't had a good work and rest time

@aadog
Copy link
Author

aadog commented Apr 3, 2022

Besides, can you provide China style support payment? For example, Alipay or WeChat is too difficult to register in China because we do not have credit card PayPal.

@aadog
Copy link
Author

aadog commented Apr 3, 2022

I have used many methods, and it seems that I can't pay for supporters. I want to be your supporter

@kataras
Copy link
Owner

kataras commented Apr 18, 2022

Hello @aadog,

I don't know to setup Alipay or WeChat payments. Could you help us?

@aadog
Copy link
Author

aadog commented Apr 18, 2022

https://www.alipay.com/

@aadog
Copy link
Author

aadog commented Apr 18, 2022

@aadog
Copy link
Author

aadog commented Apr 18, 2022

This is China's largest third party payment platform, Alipay.

@aadog aadog closed this as completed Apr 18, 2022
@aadog aadog reopened this Apr 18, 2022
@aadog
Copy link
Author

aadog commented Apr 18, 2022

This is Alipay, the largest third party payment platform in China.

In China, you have many supporters who want to sponsor you, but there is no effective payment method,

Kataras, you seem to be the most popular open source author among Chinese developers in the golang community

@kataras
Copy link
Owner

kataras commented Jul 15, 2022

@aadog thanks a lot for your words! I've tried to open an alipay global account, it's still in review. I don't think I will get it, didn't find enough documentation to accept payments through QR Code or API with AliPay Global but I will keep trying - if you know how we can do it please provide me some assistance

@aadog
Copy link
Author

aadog commented Jul 17, 2022

@kataras
Copy link
Owner

kataras commented Jul 22, 2022

@aadog

It seems that I had an account from 2020 September when I tried to login it shows my name and my photo. However, I can't login because the app needs some strange verification:
294904409_355119796632021_6718526359424670534_n

I've putted my greek bank card but it doesn't work :/

@aadog
Copy link
Author

aadog commented Jul 23, 2022

Alipay overseas telephone support: +86 571 95188

@aadog aadog closed this as completed Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants